using System;

namespace Terra.Core.Constants;

/// <summary>
/// 权限相关常量
/// </summary>
public static class SecurityConstants
{
    /// <summary>
    /// 权限类型
    /// </summary>
    public static class PermissionType
    {
        /// <summary>
        /// 菜单权限
        /// 
        /// </summary>
        public const string Menu = "menu";

        /// <summary>
        /// 操作权限
        /// </summary>
        public const string Operation = "operation";
    }

    /// <summary>
    /// 权限验证策略名称
    /// </summary>
    public const string PermissionPolicyName = "PermissionPolicy";

    /// <summary>
    /// 权限声明类型
    /// </summary>
    public const string PermissionClaimType = "permission";

    /// <summary>
    /// 超级管理员角色编码
    /// </summary>
    public const string SuperAdminRoleCode = "超级管理员";
}